package com.ubi.core.base;

import com.ubi.core.database.BaseMapper;

/**
 * 公共map
 * 
 * @author : lvh
 * @date: 16-01-29
 */
public interface GenericMapper<M, P> extends BaseMapper {

    int insert(M record);

    int deleteByPrimaryKey(P id);

    M selectByPrimaryKey(P id);

    int updateByPrimaryKey(M record);

    int updateByPrimaryKeySelective(M record);
}
